package cn.flying.financial.cps.process.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 银行卡信息表
 *
 * @author lvyong
 * @since 2024-02-19 16:34:28
 */
@TableName("cp_card_info")
public class CpCardInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 申请单号
     */
    @TableField("app_no")
    private String appNo;

    /**
     * 证件编号
     */
    @TableField("id_no")
    private String idNo;

    /**
     * 证件类型
     */
    @TableField("id_type")
    private String idType;

    /**
     * 账户名称
     */
    @TableField("name")
    private String name;

    /**
     * 银行卡号
     */
    @TableField("card_no")
    private String cardNo;

    /**
     * 所属银行名称
     */
    @TableField("bank_name")
    private String bankName;

    /**
     * 所属银行行号
     */
    @TableField("bank_no")
    private String bankNo;

    /**
     * 卡账户类型
     */
    @TableField("card_type")
    private String cardType;

    /**
     * 产品编号
     */
    @TableField("product_no")
    private String productNo;

    /**
     * 是否默认还款卡
     */
    @TableField("is_pay")
    private String isPay;

    /**
     * 是否本行卡
     */
    @TableField("is_cur_bank")
    private String isCurBank;

    /**
     * 租户号
     */
    @TableField("tenant_id")
    private String tenantId;

    /**
     * 管理人ID
     */
    @TableField("biz_user_id")
    private String bizUserId;

    /**
     * 管理人名称
     */
    @TableField("biz_user_name")
    private String bizUserName;

    /**
     * 所属机构ID
     */
    @TableField("biz_org_id")
    private String bizOrgId;

    /**
     * 所属机构名称
     */
    @TableField("biz_org_name")
    private String bizOrgName;

    /**
     * 权限ID
     */
    @TableField("role_id")
    private String roleId;

    /**
     * 乐观锁
     */
    @TableField("revision")
    @Version
    private Long revision;

    /**
     * 创建人
     */
    @TableField(value = "created_by", fill = FieldFill.INSERT)
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private LocalDateTime createdTime;

    /**
     * 更新人
     */
    @TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    /**
     * 更新时间
     */
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;

    /**
     * 删除标识
     */
    @TableField(value = "deleted", fill = FieldFill.INSERT)
    @TableLogic
    private String deleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAppNo() {
        return appNo;
    }

    public void setAppNo(String appNo) {
        this.appNo = appNo;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getIdType() {
        return idType;
    }

    public void setIdType(String idType) {
        this.idType = idType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankNo() {
        return bankNo;
    }

    public void setBankNo(String bankNo) {
        this.bankNo = bankNo;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public String getIsPay() {
        return isPay;
    }

    public void setIsPay(String isPay) {
        this.isPay = isPay;
    }

    public String getIsCurBank() {
        return isCurBank;
    }

    public void setIsCurBank(String isCurBank) {
        this.isCurBank = isCurBank;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getBizUserId() {
        return bizUserId;
    }

    public void setBizUserId(String bizUserId) {
        this.bizUserId = bizUserId;
    }

    public String getBizUserName() {
        return bizUserName;
    }

    public void setBizUserName(String bizUserName) {
        this.bizUserName = bizUserName;
    }

    public String getBizOrgId() {
        return bizOrgId;
    }

    public void setBizOrgId(String bizOrgId) {
        this.bizOrgId = bizOrgId;
    }

    public String getBizOrgName() {
        return bizOrgName;
    }

    public void setBizOrgName(String bizOrgName) {
        this.bizOrgName = bizOrgName;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public Long getRevision() {
        return revision;
    }

    public void setRevision(Long revision) {
        this.revision = revision;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String getDeleted() {
        return deleted;
    }

    public void setDeleted(String deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "CpCardInfo{" +
        "id = " + id +
        ", appNo = " + appNo +
        ", idNo = " + idNo +
        ", idType = " + idType +
        ", name = " + name +
        ", cardNo = " + cardNo +
        ", bankName = " + bankName +
        ", bankNo = " + bankNo +
        ", cardType = " + cardType +
        ", productNo = " + productNo +
        ", isPay = " + isPay +
        ", isCurBank = " + isCurBank +
        ", tenantId = " + tenantId +
        ", bizUserId = " + bizUserId +
        ", bizUserName = " + bizUserName +
        ", bizOrgId = " + bizOrgId +
        ", bizOrgName = " + bizOrgName +
        ", roleId = " + roleId +
        ", revision = " + revision +
        ", createdBy = " + createdBy +
        ", createdTime = " + createdTime +
        ", updatedBy = " + updatedBy +
        ", updatedTime = " + updatedTime +
        ", deleted = " + deleted +
        "}";
    }
}
